package com.ruizhong.integratedmediawithoutc.config;

import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicReference;

@Component
public class DefaultAssetsPathProvider implements DynamicAssetsResourceResolver.AssetsPathProvider {
    
    private final AtomicReference<String> currentPath = new AtomicReference<>("D:/default/assets");
    
    @Override
    public String getCurrentAssetsPath() {
        return currentPath.get();
    }
    
    public void updateAssetsPath(String newPath) {
        this.currentPath.set(newPath);
    }
}